package com.zhiyou.service;

import com.zhiyou.entity.Contract;
import com.zhiyou.entity.House;
import com.zhiyou.entity.Lessee;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface ContractService {

    List<Contract> getall();

    List<Contract> getLikeAll(String cname);

    int insetcontract(Contract contract);

    List<House> selectbyid(Contract contract);

    List<Lessee> selectbylessee(Contract contract);

    int delcontract(int cid);

    List<Contract> selectbycid(Contract contract);

    int updatacontract(Contract contract);

    List<Contract> getstatus();
}
